package com.wsd.domain;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
@Scope("prototype")
@Component
public class LoanInformation {
    private Long loanId;

    private LocalDateTime gmtCreate;

    private LocalDateTime gmtModified;

    private Long customerId;

    private BigDecimal loanAmount;

    private LocalDateTime loanStartTime;

    private String installmentNum;

    private String repaymentType;

    private String repaymentDate;

    private LocalDate expireDate;

    private BigDecimal remainPrincipal;

    private String loanStatus;

    private String isDelete;

    public Long getLoanId() {
        return loanId;
    }

    public void setLoanId(Long loanId) {
        this.loanId = loanId;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public BigDecimal getLoanAmount() {
        return loanAmount;
    }

    public void setLoanAmount(BigDecimal loanAmount) {
        this.loanAmount = loanAmount;
    }

    public LocalDateTime getLoanStartTime() {
        return loanStartTime;
    }

    public void setLoanStartTime(LocalDateTime loanStartTime) {
        this.loanStartTime = loanStartTime;
    }

    public String getInstallmentNum() {
        return installmentNum;
    }

    public void setInstallmentNum(String installmentNum) {
        this.installmentNum = installmentNum == null ? null : installmentNum.trim();
    }

    public String getRepaymentType() {
        return repaymentType;
    }

    public void setRepaymentType(String repaymentType) {
        this.repaymentType = repaymentType == null ? null : repaymentType.trim();
    }

    public String getRepaymentDate() {
        return repaymentDate;
    }

    public void setRepaymentDate(String repaymentDate) {
        this.repaymentDate = repaymentDate == null ? null : repaymentDate.trim();
    }

    public LocalDate getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(LocalDate expireDate) {
        this.expireDate = expireDate;
    }

    public BigDecimal getRemainPrincipal() {
        return remainPrincipal;
    }

    public void setRemainPrincipal(BigDecimal remainPrincipal) {
        this.remainPrincipal = remainPrincipal;
    }

    public String getLoanStatus() {
        return loanStatus;
    }

    public void setLoanStatus(String loanStatus) {
        this.loanStatus = loanStatus == null ? null : loanStatus.trim();
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete == null ? null : isDelete.trim();
    }

    @Override
    public String toString() {
        return "LoanInformation{" +
                "loanId=" + loanId +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", customerId=" + customerId +
                ", loanAmount=" + loanAmount +
                ", loanStartTime=" + loanStartTime +
                ", installmentNum='" + installmentNum + '\'' +
                ", repaymentType='" + repaymentType + '\'' +
                ", repaymentDate='" + repaymentDate + '\'' +
                ", expireDate=" + expireDate +
                ", remainPrincipal=" + remainPrincipal +
                ", loanStatus='" + loanStatus + '\'' +
                ", isDelete='" + isDelete + '\'' +
                '}';
    }
}